package com.zgp.tools;

import com.zgp.domain.dto.MobileDataMealDTO;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * 套餐 工具 类
 * @author zgp
 * @version V1.0
 * @date 2025-04-20 19:58
 */
@Component
public class MobileDataMealTool {
    // 初始化套餐列表
    public static final List<MobileDataMealDTO> mobileDataMealDTOList = List.of(
            new MobileDataMealDTO( "经济卡", 39, "10GB", 100, Arrays.asList(), 0, "首月半价"),
            new MobileDataMealDTO("畅享全家享", 99, "50GB", 500, Arrays.asList("200M宽带", "2张副卡"), 12, "送视频会员月卡"),
            new MobileDataMealDTO( "全球通尊享", 199, "不限量", 2000, Arrays.asList("国际漫游", "5G优先"), 24, "机场贵宾厅2次/年"),
           new MobileDataMealDTO("学生青春卡", 59, "30GB", 200, Arrays.asList("校园网加速"), 6, "免流特定APP")
    );

    @Tool(description = "查询移动数据套餐列表")
    public List<MobileDataMealDTO> getMobileDataMealDTOList() {
        return mobileDataMealDTOList;
    }


}
